package com.easyweb.session;

import com.easyweb.entity.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.In;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("bankaSubeleriHome")
public class BankaSubeleriHome extends EntityHome<BankaSubeleri> {

	@In(create = true)
	BankaTanimlariHome bankaTanimlariHome;

	public void setBankaSubeleriId(BigDecimal id) {
		setId(id);
	}

	public BigDecimal getBankaSubeleriId() {
		return (BigDecimal) getId();
	}

	@Override
	protected BankaSubeleri createInstance() {
		BankaSubeleri bankaSubeleri = new BankaSubeleri();
		return bankaSubeleri;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
		BankaTanimlari bankaTanimlari = bankaTanimlariHome.getDefinedInstance();
		if (bankaTanimlari != null) {
			getInstance().setBankaTanimlari(bankaTanimlari);
		}
	}

	public boolean isWired() {
		return true;
	}

	public BankaSubeleri getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

 

}
